package com.xiaochao.bigdata.test

import com.alibaba.fastjson.{JSON, JSONObject}


object JSONDemo {

  def main(args: Array[String]): Unit = {

//    val jsonStr = "{\"studentName\":\"lily\",\"studentAge\":12}"
//
//    val jsonObject = JSON.parseObject(jsonStr)
//
//    println(jsonObject.getString("studentName"))

    val str = "startAge=10|endAge=20|"

    println(str.endsWith("\\|"))


  }

}
